package com.gonsin.gmessage.logic.swagger;

import com.github.xiaoymin.knife4j.core.extend.OpenApiExtendMarkdownFile;
import springfox.documentation.service.VendorExtension;

import java.util.List;

public class GMessageMarkdownExtension implements VendorExtension<List<OpenApiExtendMarkdownFile>>{

    private final List<OpenApiExtendMarkdownFile> openApiExtendMarkdownFiles;

    public GMessageMarkdownExtension(List<OpenApiExtendMarkdownFile> openApiExtendMarkdownFiles) {
        this.openApiExtendMarkdownFiles = openApiExtendMarkdownFiles;
    }

    @Override
    public String getName() {
        return "x-markdownFiles";
    }

    @Override
    public List<OpenApiExtendMarkdownFile> getValue() {
        return this.openApiExtendMarkdownFiles;
    }
}
